const app = getApp();

// 项目人员管理之请假
let LeaveManagementForProjectPersonnel = function (url, data) {
    return new Promise((resolve, reject) => {
        wx.request({
            header: {
                'Content-Type': "application/json;charset=UTF-8",
                'Authorization': 'Bearer ' + app.globalData.loginToken,
            },
            url: app.globalData.goCardUrl + url,
            method: "POST",
            data: data,
            success(res) {
                resolve(res);
            },
            fail() {
                reject();
            }
        })
    });
}


module.exports = {
    LeaveManagementForProjectPersonnel: LeaveManagementForProjectPersonnel,
}